#!/bin/bash
# Project: bash_tools
# Filename: locktest
# Author: Mariusz Iwanski
# Date: 2012-07-08
# Version: 1.0
# License: 
#
# Describe: Script contains demonstration of scriptlock.lib.sh usage.
#
# Usage: locktest [-lib scriptlock.lib.sh]
#	 [-lib] showing help of included library
#
# Exitcodes: -

# Add path to lib
export PATH=$PATH:/home/potworek/projekt/bash-tools/lib

#INCLUDE
. scriptlock.lib.sh

#lock testing
echo "script is now locked..."
echo "check /tmp for lock file: 889_lock_scriptlock.lib.sh_*"
echo "execute the same script to test lock ... "
echo "execute other script (locktest2) that is using library: scriptlock.lib.sh ... "

read -p "Press [Enter] key to exit"

